package com.doujiang.bus.vo;

import com.doujiang.bus.domain.Check;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author：豆浆
 * @name :CheckVo
 * @Date：2023/12/21 20:06
 */
public class CheckVo extends Check {
    /**
     * 分⻚参数
     */
    private Integer page;//那一页
    private Integer limit;//每一页显示几个
    //接受多个id
    private String [] ids;
    /**
     * 扩展表单参数 将前台时间提交到后台
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;



    public CheckVo() {
    }

    public CheckVo(Integer page, Integer limit, String[] ids, Date startTime, Date endTime) {
        this.page = page;
        this.limit = limit;
        this.ids = ids;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    /**
     * 获取
     * @return page
     */
    public Integer getPage() {
        return page;
    }

    /**
     * 设置
     * @param page
     */
    public void setPage(Integer page) {
        this.page = page;
    }

    /**
     * 获取
     * @return limit
     */
    public Integer getLimit() {
        return limit;
    }

    /**
     * 设置
     * @param limit
     */
    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    /**
     * 获取
     * @return ids
     */
    public String[] getIds() {
        return ids;
    }

    /**
     * 设置
     * @param ids
     */
    public void setIds(String[] ids) {
        this.ids = ids;
    }

    /**
     * 获取
     * @return startTime
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return endTime
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 设置
     * @param endTime
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String toString() {
        return "CheckVo{page = " + page + ", limit = " + limit + ", ids = " + ids + ", startTime = " + startTime + ", endTime = " + endTime + "}";
    }
}
